﻿#ifndef MYWAVEPLOT_H
#define MYWAVEPLOT_H

#include "qcustomplot.h"
#pragma execution_character_set("utf-8")

class MyWavePlot : public QCustomPlot
{
    Q_OBJECT
public:
    explicit MyWavePlot(QWidget *parent = nullptr);
    /***
     * waveData 指向波形数据数组的指针
     * dataLen waveData的长度
    ***/
    void setData(float *waveDataA, float *waveDataB, float *waveDataC, int dataLen);

private:
    void init_plotSlot();
    void create_graph();
    QPen select_color(int flag);
signals:

public slots:
};

#endif // MYWAVEPLOT_H
